package com.lanchetech.dao;

import com.lanchetech.bean.request.PageReq;import com.lanchetech.entity.Packages;
import org.apache.ibatis.annotations.Mapper;import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface PackagesMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Packages record);

    int insertSelective(Packages record);

    Packages selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Packages record);

    int updateByPrimaryKey(Packages record);

    List<Packages> findAllPage(PageReq req);

    List<Packages> findTwoTop();

    List<Packages> findAllFrontPage(PageReq req);

    int updateDeletedById(@Param("updatedDeleted") Byte updatedDeleted, @Param("id") Long id);

    List<Packages> findTwoTopInIds(@Param("now") Date now, @Param("ids") List<Long> ids);

    int insert2(Packages record);
}